<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo site_url('static/style/css/style.css');?>" />
<title>无标题文档</title>
</head>

<body><table width="95%" border="0" cellspacing="0">
  <tr>
    <td>
    <h3>添加用户</h3>
    </td>
  </tr>
  <tr>
    <td height="76" valign="top">
      <?php echo validation_errors(); ?>
<form action="add_user" method="post" enctype="multipart/form-data" name="adduser">
<table width="100%" border="0">
  <tr>
    <td width="10%" height="31">姓名：</td>
    <td width="90%">
      <input type="text" name="txusername" value="<?php echo set_value('txusername'); ?>"/>
    <span class="mustinput">(*)</span></td>
  </tr>
  <tr>
    <td height="36">EMail：</td>
    <td><input type="text" name="txemail" value="<?php echo set_value('txemail'); ?>"/>
    <span class="mustinput">(*)</span>
    </td>
  </tr>
  <tr>
    <td height="35">密码：</td>
    <td><input type="text" name="txpassword" value="<?php echo set_value('txusername'); ?>"/>
    <span class="mustinput">(*)</span>
    </td>
  </tr>
  <tr>
    <td height="39">密码确认：</td>
    <td><input type="text" name="repassword" /></td>
  </tr>
  <tr>
    <td height="38">头像：</td>
    <td><label>
      <input type="file" name="headerpic" id="fileField" />
    </label></td>
  </tr>
  <tr>
    <td height="39">级别：</td>
    <td>
      <select name="txgrade">
      <?php foreach($grade as $gv){?>
      	<option value="<?=$gv->id?>"><?=$gv->gradename?></option>
      	<?php } ?>
      </select>
    </td>
  </tr>
  <tr>
    <td height="37">金币数量：</td>
    <td><input type="text" name="txgoldnum" value="<?php echo set_value('txgoldnum'); ?>"/></td>
  </tr>
  <tr>
    <td height="35">国家：</td>
    <td>
     
      <select name="txcountry">
      <?php foreach($country as $cv){?>
      	<option value="<?=$cv->id?>"><?=$cv->name?></option>
      	<?php } ?>
      </select>
    </td>
  </tr>
  <tr>
    <td height="37">收货地址：</td>
    <td><label>
      <input name="txaddress" type="text" value="<?php echo set_value('txaddress'); ?>" size="120"/>
    </label></td>
  </tr>
  <tr>
    <td height="44">收款账号：</td>
    <td><label>
      <input name="txaccount" type="text" value="<?php echo set_value('txaccount'); ?>" size="50"/>
    </label></td>
  </tr>
    <tr>
    <td height="44">状态：</td>
    <td>
           <select name="enabled">
      
      	<option value="1">启用</option>
      <option value="0">停用</option>
      </select>
    </td>
  </tr>
  <tr>
    <td height="44">&nbsp;</td>
    <td><label>
      <input type="submit" name="Submit" value="提交" />
    </label></td>
  </tr>
</table>
</form>
</td>
  </tr>
</table>
</body>
</html>
